//
// Created by gogoqiu on 2022/2/11.
//

#ifndef RAPIDSVN_CMAKE_MAINAPP_H
#define RAPIDSVN_CMAKE_MAINAPP_H

#include "wx/app.h"
#include "wx/intl.h"
#include <wx/html/helpctrl.h> // html help support
#include "model/MyTagApp.h"


/**
 *
 */
class MainApp:public MyTagApp
{
public:
    void OptionallyRegisterTempFile(const wxString & filename);
    void OptionallyPurgeTempFiles();

#if wxUSE_WXHTML_HELP
    wxHtmlHelpController& GetHelpController(){
        return *m_helpController;
    }
#endif

protected:
    bool OnInit() override;
    int OnExit() override;

private:
    wxLocale m_locale;

    wxArrayString m_TempFiles;

#if wxUSE_WXHTML_HELP
    wxHtmlHelpController* m_helpController;

    bool   LocateHelp();
#endif

    wxString get_query_git_url(){
        //return geQueryValue( KEY_QUERY_GIT_URL );
        return "";
    }
};

DECLARE_APP(MainApp)

#endif //RAPIDSVN_CMAKE_MAINAPP_H
